import api from "@/api/axiosApi"

const farmHouse = {
	FarmSort(url,params){
		return api.get(url,params)
	},
	SearchFarmHouse(url,params){
		return api.get(url,params)
	},
	AddFarmHouse(url,params){
		return api.post(url,params)
	},
	editorFarmHouse(url,params){
		return api.put(url,params)
	},
	deleteFarmHouse(url,params){
	    return api.del(url,params)
	},
	SearchHomeAll(url,parms){ //首页查询全部农家乐数据
		return api.get(url,parms)
	},
	SearchHousePage(url,parms){//分页查询农家乐信息
		return api.get(url,parms)
	},
	GetTree(url,parms){
		return api.get(url,parms)
	},
	SubmitReserve(url,parms){
		return api.post(url,parms)
	},
	getMyCollects(url,params){//我的农家乐收藏
		return api.get(url,params)
	},
	addCollectHouse(url,params){//收藏农家乐
		return api.post(url,params)
	},
	HouseDetails(url,parms){//已登录查看单个农家乐信息
		return api.get(url,parms)
	},
	NotLogHouseDetails(url,parms){//未登录查看单个农家乐信息
		return api.get(url,parms)
	}
}

export default farmHouse;